<!--<template>
  <div>
    <h1 align="left" font size="large">姓名</h1>
    <div class="demo-fit">
      <div class="block" v-for="fit in fits" :key="fit">
        <el-avatar shape="square" :size="100" :fit="fit" :src="url"></el-avatar>
    </div>
  </div>
    <h3 class="personal1" align="left">就读情况</h3>
    <h3 class="personal1" align="left">学校</h3>
    <h3 class="personal1" align="left">专业</h3>
    <h3 class="personal1" align="left">电话</h3>
    <h3 class="personal1" align="left">邮箱</h3>

    <div>
      <h2 class="title">教育经历</h2>
      <el-input
        type="textarea"
        :rows="4"
        placeholder="请输入内容"
        v-model="textarea">
      </el-input>
    </div>
    <div>
      <h2 class="title">实习经历</h2>
      <el-input
        type="textarea"
        :rows="4"
        placeholder="请输入内容"
        v-model="textarea1">
      </el-input>
    </div>
    <div>
      <h2 class="title">项目经历</h2>
      <el-input
        type="textarea"
        :rows="4"
        placeholder="请输入内容"
        v-model="textarea2">
      </el-input>
    </div>
    <div>
      <h2 class="title">获奖经历</h2>
      <el-input
        type="textarea"
        :rows="4"
        placeholder="请输入内容"
        v-model="textarea3">
      </el-input>
    </div>
    <div>
      <h2 class="title">技能/语言</h2>
      <el-input
        type="textarea"
        :rows="4"
        placeholder="请输入内容"
        v-model="textarea4">
      </el-input>
    </div>
  </div>
</template>

<style scoped>
  .title{
      font-weight:1000;
      float:left;
  }
  .personal1{
    font-weight:900
  }
</style>

<script>
export default {
  data () {
    return {
      textarea: '',
      textarea1: '',
      textarea2: '',
      textarea3: '',
      textarea4: '',
      fits: ['contain'],
      url: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg'
    }
  }
}
</script>-->

<template>
  <div>
    <div class="divcss5" style="border-bottom:3px solid #eee">
     <h5 align="left">招聘进度管理>进行中>查看简历</h5>
    </div>
    <el-form :label-position="left" label-width="100px" :model="ruleForm" :rules="rules" ref="ruleForm" class="demo-ruleForm">
      <el-row align="left">
        <el-col :span="1" style="width:180px">
        <el-upload
          class="avatar-uploader"
          action="https://jsonplaceholder.typicode.com/posts/"
          :show-file-list="false"
          :on-success="handleAvatarSuccess"
          :before-upload="beforeAvatarUpload">
          <img v-if="imageUrl" :src="imageUrl" class="avatar">
          <i v-else class="el-icon-plus avatar-uploader-icon"></i>
        </el-upload>
        </el-col>
        <el-col :span="2" style="width:350px">
          <el-form-item label="姓名：">
            <el-input style="width:16em" v-model="person.name"></el-input>
          </el-form-item>
          <el-form-item label="学校：" >
            <el-input style="width:16em" v-model="person.school"></el-input>
          </el-form-item>
          <el-form-item label="所在城市：">
            <el-input style="width:16em" v-model="person.city"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="3" style="width:350px">
          <el-form-item label="性别：" >
            <el-input style="width:16em" v-model="person.gender"></el-input>
          </el-form-item>
          <el-form-item label="专业：">
            <el-input style="width:16em" v-model="person.major"></el-input>
          </el-form-item>
          <el-form-item label="联系方式：" >
            <el-input style="width:16em" v-model="person.phone"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="4" style="width:350px">
          <el-form-item label="年龄：">
            <el-input style="width:16em" v-model="person.age"></el-input>
          </el-form-item>
          <el-form-item label="就读情况：">
            <el-input style="width:16em" v-model="person.learn"></el-input>
          </el-form-item>
          <el-form-item label="邮箱：">
            <el-input style="width:16em" v-model="person.mail"></el-input>
          </el-form-item>
        </el-col>
      </el-row>

      <!--<el-row type="flex" class="row-bg">
         <el-col :span="8">
         <el-form-item label="姓名：">
            <el-input style="width:16em" v-model="person.name"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex" class="row-bg">
        <el-col :span="8">
          <el-form-item label="姓名：">
            <el-input style="width:16em" v-model="person.name"></el-input>
          </el-form-item>
        </el-col>
          <el-form-item label="性别：" >
            <el-input style="width:16em" v-model="person.gender"></el-input>
          </el-form-item>
          <el-form-item label="年龄：">
            <el-input style="width:16em" v-model="person.age"></el-input>
          </el-form-item>
      </el-row>
      <el-row type="flex" class="row-bg">
        <el-col :span="8">
          <el-form-item label="学校：" >
            <el-input style="width:16em" v-model="person.school"></el-input>
            </el-form-item>
          </el-col>
          <el-form-item label="专业：">
            <el-input style="width:16em" v-model="person.major"></el-input>
          </el-form-item>
          <el-form-item label="就读情况：">
            <el-input style="width:16em" v-model="person.learn"></el-input>
          </el-form-item>
      </el-row>
      <el-row type="flex" class="row-bg">
        <el-col :span="8">
          <el-form-item label="所在城市：">
            <el-input style="width:16em" v-model="person.city"></el-input>
          </el-form-item>
          </el-col>
          <el-form-item label="联系方式：" >
            <el-input style="width:16em" v-model="person.phone"></el-input>
          </el-form-item>
          <el-form-item label="邮箱：">
            <el-input style="width:16em" v-model="person.mail"></el-input>
          </el-form-item>
      </el-row>-->

      <el-row>
      <el-form-item label-width="100px" label="教育经历：">
        <el-input
          type="textarea"
          :rows="4"
          placeholder=""
          v-model="person.education">
        </el-input>
      </el-form-item>
      <el-form-item label="实习经历：">
        <el-input
          type="textarea"
          :rows="4"
          placeholder=""
          v-model="person.intern">
        </el-input>
      </el-form-item>
      <el-form-item label="项目经历：">
        <el-input
          type="textarea"
          :rows="4"
          placeholder=""
          v-model="person.project">
        </el-input>
      </el-form-item>
      <el-form-item label="获奖经历：">
        <el-input
          type="textarea"
          :rows="4"
          placeholder=""
          v-model="person.award">
        </el-input>
      </el-form-item>
      <el-form-item label="技能/语言：">
        <el-input
          type="textarea"
          :rows="4"
          placeholder=""
          v-model="person.skill">
        </el-input>
      </el-form-item>
      <el-form-item label="兴趣特长：">
        <el-input
          type="textarea"
          :rows="4"
          placeholder=""
          v-model="person.interest">
        </el-input>
      </el-form-item>
      <el-form-item label="个人总结：">
        <el-input
          type="textarea"
          :rows="4"
          placeholder=""
          v-model="person.summary">
        </el-input>
        </el-form-item>
       </el-row>
         <el-form-item>
          <el-button @click="resetForm('ruleForm')">返回</el-button>
          <el-button type="primary" @click="submitForm('ruleForm')">收藏简历</el-button>
        </el-form-item>
      <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
    </el-form>
    </el-form>
  </div>
</template>

<script>
export default {
  data () {
    return {
      formInline: {
        user: ''
      },
      person: {
        imageUrl: '',
        name: '派大星',
        gender: '女',
        age: '20',
        city: '广州',
        school: '中山大学',
        major: '信息管理与信息系统',
        learn: '',
        phone: '1234456',
        mail: '123448900',
        education: '大学',
        intern: '',
        project: '无项目经历',
        award: '无',
        skill: '擅长编程',
        interest: '看书',
        summary: ''
      }
    }
  },
  methods: {
    onSubmit () {
      console.log('submit!')
    },
    handleAvatarSuccess (res, file) {
      this.imageUrl = URL.createObjectURL(file.raw);
    },
    beforeAvatarUpload(file) {
      const isJPG = file.type === 'image/jpeg';
      const isLt2M = file.size / 1024 / 1024 < 2;
      if (!isJPG) {
        this.$message.error('上传头像图片只能是 JPG 格式!');
      }
      if (!isLt2M) {
        this.$message.error('上传头像图片大小不能超过 2MB!');
      }
      return isJPG && isLt2M;
    }
  }
}
</script>

<style>
.divcss5{
  margin:20px 0;
  color: rgb(144,144,144);
  height: 30px;
  }
.avatar-uploader .el-upload {
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.avatar-uploader .el-upload:hover {
  border-color: #409EFF;
}
.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 178px;
  height: 178px;
  line-height: 178px;
  text-align: center;
}
.avatar {
  width: 178px;
  height: 178px;
  display: block;
}
</style>
